package com.seecode;

/**
 * Created by Administrator on 2017/10/18.
 */


import android.content.Context;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/10/4.
 */

public class Logs {



    private static final String TAG = "Logs";
    private static String type="ANDROID";//PC AND ANDROID


    public static void i(String msg) {


        if(type.equals("ANDROID")) {
            Log.i(TAG, msg);
        }else{

            System.out.println(TAG+":  "+msg);
        }
    }
    public static void setType(String mtype){
        type=mtype;

    }
    public static void toast(Context context, String showText){

        Toast.makeText(context,showText,Toast.LENGTH_SHORT);
    }

}
